import { getAction, postAction,downFile } from '@/api/manage'

// 门店设备管理
const saveOrUpdateStore = (params) => postAction("/backend/coffee/saveOrUpdateStore", params);
const checkStore = (params) => postAction("/backend/coffee/checkStore", params);

// 广告图管理
const saveOrUpdateAdvert = (params) => postAction("/backend/coffee/saveOrUpdateAdvert", params);

//添加商品
const addProduct = (params) => postAction("/backend/coffee/saveOrUpdateProduct", params);

// 重复校验
const duplicateCheck = (params) => getAction("/jnby-boot/sys/duplicate/check", params);

// 数据看板列表
const dataBoard = (params) => getAction("/backend/coffee/summary", params);

// 数据看板列表导出
const exportDataBoard = (params) => downFile("/backend/coffee/exportSummary", params);

//品牌下拉
const brandList = (params) => getAction("/backend/vip/invite/brandList", params);

export {
  saveOrUpdateStore,
  saveOrUpdateAdvert,
  addProduct,
  duplicateCheck,
  checkStore,
  dataBoard,
  exportDataBoard,
  brandList
}